package com.yxj.threadcase1;

public class ThreadDemo8 {
    public static void main(String[] args) throws InterruptedException {
        /*
        * public final void join() 插入进程/插队线程*/

        MyThread8 t = new MyThread8();
        t.setName("图扽");
        t.start();

        //插入线程
        t.join();

        //执行在main线程中的
        for(int i = 0; i < 10; i++) {
            System.out.println("main线程"+i);
        }
    }
}
